package ute.mvc.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import ute.mvc.dao.Course_SubjectDAO;
import ute.mvc.model.MyClass;
import ute.mvc.model.OpenCourse_Subject;
import ute.mvc.model.TestAndQuizz;

@Service ("course_SubjectService")
public class Course_SubjectServiceImpl implements Course_SubjectService{

	@Autowired
	Course_SubjectDAO course_SubjectDAO;
	
	@Transactional
	public void addCourse_Subject(OpenCourse_Subject course_subject) {
		course_SubjectDAO.addCourse_Subject(course_subject);
	}
	@Transactional
	public void updateCourse_Subject(OpenCourse_Subject course_subject) {
		course_SubjectDAO.updateCourse_Subject(course_subject);
	}
	@Transactional
	public void deleteCourse_Subject(OpenCourse_Subject course_subject) {
		course_SubjectDAO.deleteCourse_Subject(course_subject);
	}
	public OpenCourse_Subject getCourse_Subject(String id) {
		// TODO Auto-generated method stub
		return course_SubjectDAO.getCourse_Subject(id);
	}
	

}
